import {http} from "@/service/http";

import type { WareHouseData } from "@/types/player";

const prefix = "/mc";

/**
 * 获取玩家仓库信息
 * @param playerId 
 * @returns
 */
export const getPlayerWareHouse = (playerId : number) => {
    return http<number ,WareHouseData>({
      method: 'GET',
      url: `${prefix}/Player/GetPlayerWareHouse`,
      params: {
        playerId
      }
    })
  }